import request from '@/utils/request'

/**
 * 生成入库申请单
 * @param applyStock
 */
export function applyStock(data) {
  return request({
    url: `/md/stock/applyStock`,
    method: 'post',
    data
  })
}

/**
 * 查询-分页查询检验单数据
 * @param stockQuery
 */
export function stockQuery(data) {
  return request({
    url: `/md/stock/query`,
    method: 'post',
    data
  })
}

/**
 * 通过Sfc查询数据
 * @param stock
 */
export function stockSFC(sfc) {
  return request({
    url: `/md/stock/${sfc}`,
    method: 'get'
  })
}

/**
 * 生成ERP入库单
 * @param stock
 */
export function repeatInStock(stockNo) {
  return request({
    url: `/md/stock/repeatInStock?stockNo=${stockNo}`,
    method: 'get'
  })
}

